<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$merchid=$this->checklogin();
if($_RQ['op']=='basic'){
	$item['merchlink2']='jy_merch/merch//merchid='.$merchid;
	$item['merchlink']=custom_url('jy_merch/merch//merchid='.$merchid,true);
	$item['shoplink2']='jy_merch/myshop//merchid='.$merchid;
	$item['shoplink']=custom_url('jy_merch/myshop//merchid='.$merchid,true);
	$item['fuwulink2']='jy_mfuwu/app.index//merchid='.$merchid;
	$item['fuwulink']=custom_url('jy_mfuwu/app.index//merchid='.$merchid,true);
	$item['verifylink']='jy_merch/verify.index//merchid='.$merchid;
	$item['verifylinks']=custom_url('jy_merch/verify.index//merchid='.$merchid,true);
	
	$item['member']='jy_merch/member.index//merchid='.$merchid;
	$item['memberlink']=custom_url('jy_merch/member.index//merchid='.$merchid,true);
	
	
	$item['workers']='jy_merch/manage.hyindex//merchid='.$merchid;
    $item['workerslinks']=custom_url('jy_merch/manage.hyindex//merchid='.$merchid,true);
    
    
    $item['workerss']='jy_merch/manage.dyindex//merchid='.$merchid;
    $item['workersslinks']=custom_url('jy_merch/manage.dyindex//merchid='.$merchid,true);
	
	$item['aricle']='jy_merch/news.list//merchid='.$merchid;
    $item['ariclelink']=custom_url('jy_merch/news.list//merchid='.$merchid,true);


    $item['videos']='jy_merch/video.index//merchid='.$merchid;
    $item['videoslink']=custom_url('jy_merch/video.index//merchid='.$merchid,true);
    
    
	$item['groups']='jy_merch/shop.groups//merchid='.$merchid;
	$item['groupslink']=custom_url('jy_merch/shop.groups//merchid='.$merchid,true);
	
	
	$item['goods']='jy_merch/goods.index//merchid='.$merchid;
	$item['goodslink']=custom_url('jy_merch/goods.index//merchid='.$merchid,true);
	
	$item['coupon'] = 'jy_merch/coupon.index//merchid='.$merchid;
	
	$item['bargainlink'] = 'jy_bargain/index//merchid='.$merchid;
	
	//支付码牌入口
	$item['zhifu']='jy_merch/virtualpay//merchid='.$merchid;
	$item['zhifulink']=custom_url('jy_merch/virtualpay//merchid='.$merchid,true);
	
	$return['item']=$item;
	$htmls=array(
		'type'=>'look',
		'desc'=>'入口链接',
		'look'=>array(
			array('type'=>'looklink','title'=>'商户首页入口','name'=>'merchlink2'),
			array('type'=>'ewm','title'=>'商户首页入口','name'=>'merchlink'),
			array('type'=>'looklink','title'=>'店铺下单入口','name'=>'shoplink2'),
			array('type'=>'ewm','title'=>'店铺下单入口','name'=>'shoplink'),
			array('type'=>'looklink','title'=>'核销员管理入口','name'=>'workers'),
			array('type'=>'ewm','title'=>'核销员管理入口','name'=>'workerslinks'),
			array('type'=>'looklink','title'=>'店员管理入口','name'=>'workerss'),
			array('type'=>'ewm','title'=>'店员管理入口','name'=>'workersslinks'),
			array('type'=>'looklink','title'=>'商品列表入口','name'=>'goods'),
			array('type'=>'ewm','title'=>'商品列表入口','name'=>'goodslink'),
			array('type'=>'looklink','title'=>'商品分类入口','name'=>'groups'),
			array('type'=>'ewm','title'=>'商品分类入口','name'=>'groupslink'),
			array('type'=>'looklink','title'=>'会员中心入口','name'=>'member'),
			array('type'=>'ewm','title'=>'会员中心入口','name'=>'memberlink'),
			array('type'=>'looklink','title'=>'支付码牌入口','name'=>'zhifu'),
			array('type'=>'ewm','title'=>'支付码牌入口','name'=>'zhifulink'),
			array('type'=>'looklink','title'=>'文章中心入口','name'=>'aricle'),
			array('type'=>'looklink','title'=>'短视频中心入口','name'=>'videos'),
			array('type'=>'looklink','title'=>'优惠券入口','name'=>'coupon'),
			array('type'=>'looklink','title'=>'店员核销入口','name'=>'verifylink'),
			array('type'=>'looklink','title'=>'砍价入口','name'=>'bargainlink'),
		),
	);
	if($this->plugin_exists('jy_mfuwu')){
		$htmls['look'][]=array('type'=>'looklink','title'=>'服务入口','name'=>'fuwulink2');
	}
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
